import request from '@/utils/request'

// 查询航空加油站数据上报列表
export function listStation(query) {
  return request({
    url: '/station/station/list',
    method: 'get',
    params: query
  })
}
export function listStationNoAuth(query) {
  return request({
    url: '/station/station/listNoAuth',
    method: 'get',
    params: query
  })
}
export function listStationNoAuthNoPage(query) {
  return request({
    url: '/station/station/listNoAuthPage',
    method: 'get',
    params: query
  })
}
// 查询航空加油站数据上报详细
export function getStation(id) {
  return request({
    url: '/station/station/' + id,
    method: 'get'
  })
}

// 新增航空加油站数据上报
export function addStation(data) {
  return request({
    url: '/station/station',
    method: 'post',
    data: data
  })
}

// 修改航空加油站数据上报
export function updateStation(data) {
  return request({
    url: '/station/station',
    method: 'put',
    data: data
  })
}

// 删除航空加油站数据上报
export function delStation(id) {
  return request({
    url: '/station/station/' + id,
    method: 'delete'
  })
}
